<?php
class picAction extends Action{
	
	/**
	 * 获取某一个客栈的图片列表
	 */
	function getpiclist($pid){
		
		if(!is_numeric($pid)) return "";
		$mr=M("pic");
		$rs=$mr->field("pic1,pic4")->where("pic2=".$pid)->order("pic6 desc")->select();
		return $rs?$rs:"";
		
	}
	
}

?>